updated readme.md and fixed bug in server.js