Added comments to server.go
Refactored getting user input