reformatted, added socketIO and mongo-crud