Add Temppath.basename and fix a bug of the way to make base directory.
Update document.