Fixed a few additional bits for the NPC prototype, and fixed one instance I'd missed of the distance() function having not been replaced by length.