Modified netcat not to use -p and -l (heroku fix)
Minor refactoring