added server.js and improved docs