made SocketHandler a singleton
added jsdoc comments
refactored socket handler
Socket Handler unit tests