Major code refactoring, bugfixes, and new updater

Swept-up the pid2cmd script a little bit, modified and implemented
Seth's commit to remove whitespace, and in the process added an updater
to it.