Added argument parsing to server, fixes #51