Added ability to run npd as sudo. Added pids command to catch dangling processes.