Added pidmanager.c/h

If there are problems blame John