first draft of basic server, just command line argument functionality and checking