Added functionality to allow the NPC to lie down

Fixed spelling and added correct functionality for the leave bed animation.

EDIT: Forgot to remove unused imports and change pom version.