Fixed doors, added basic npc generation code and updated javadoc