modified server code as a module, exporting as method 'start'.  Created a simple main file to call the start the server.