add Script, Figure.&.Tables directories
cleanup tmp file