Studies on heterocyclic compounds containing nitrogen sulfur and oxygen as potential bioactive molecules