If no host address is provided assume 'localhost' fixes issue #12

Also removed some whitespace left in the code