refs #12: Changed the parameter as outputDir, sets tmpDir as deprecated, add a flag for whether saves files to a unique directory and updated documentation and examples to the new setup.