Added functionality to allow the NPC to lie down

Added more documentation

Fix spacing

Finally fixed all the spacing.
Merge pull request #11 from CeramicTitan/master

Added functionality to allow the NPC to lie down
Upstream merge