Synthesis structural and biological studies on nitrogen containing heterocyclic compounds and their intermediates