Synthetic investigations involving chiral drug intermediates and synthesis of heterocycles guided by mass spectral fragmentations