added -p port option, fix indent