added ability to set port
fixed typo