Created new files for monitor. Structure is the same as for agent, and proxy.
cleanup, finding missed variables whos names needed updated etc, by compiling for both agent and proxy.