Synthetic studies on biologically active oxygen and nitrogen heterocycles and also their pharmacological evaluation