Added help, added checking of port validity