Added sockethandler and finished messaging (Exceptions still to catch)