Added direction functions to npc & added more javadocs