more efficent getting of pid_t as a usable int
Test file exists before performing unlink
convert comments to C style
Add success return comments for new functions