Improved logger to handle multiple sessions, added further functionality to commander to parse complex messages