Support an optional pid file
Clean whitespace
Merge pull request #8 from kormoc/pid_file

Support writing out a pid file