final version of server -- I trimmed down the # of printlns and changed it so it accepts command-line params for the host and port.