Synthesis of novel amides and related compounds with applications in medicinal chemistry