Replace switch..case for argument check
Fix download usage msg and empty line in error handling
Replaced tab to space
Fixed upcoming change for json (problem, solution)
Renamed UserName to Username for consistency