Removed unnecessary/template code.
Changed logging to also log to file and include the host IP in the messages.