fixed error in docstring
updated to not use /tmp as the directory for temp files