code beautification

corrected ignore file to exclude node modules. prettied up the server
code