Changes to nlsrc.c and nlsr.c to use correct port.
Add check in nlsrc.c to prevent a segmentation fault if user supplied wrong syntax.