add readme and move socket.io listening method