Refactored client. Added code for parsing command line arguments for port and host.