host and port will default if nothing passed

added a statement to check to see if command line args are passed and if
they are then it uses those instead of the default