Made the max-score a cli argument for ease of testing.  Also cleaned up and commented on some of the server code