Continued work on HumanAgent
Various bugfixes