added comments and made the server.js a little more modular with adding a port variable