fixes #23
fixes #22 - added option to view, added nullpointer handling within agentimpl