Diverse bugfixs
Merge branch 'RC' of https://github.com/morganbp/AgentSystems into RC