semi-functional error logger
reimplemented the message parser into a streaming enabled parser its working now
General source code cleaning up and restructuring