Updated the logger, so it now only have 3 levels and logs to server.
Minor code formating fix.
Cleaned up the code.