Added 'generatePID' option that creates a pid file for the process, in case it's not a background process.
fixed spelling issue.
Made sure  option actually works.
Merge pull request #1 from nemo/master

generatePID + failOnError fixes