Fixed some spelling/grammar in the comments and improved the constructor function for the server.