Updating to use sys_get_tmp_dir() if not supplied. Updating docs.