played with example to explore adding parameters
changed name of sample data file (for example)
added better tmpdir setting for windows (should ignore under linux)

changed tmp file string with string.gsub to use correct slashes for paths in windows