Fix the temp dir issue.
Add comments.
Refine the description