Clean up; Modfied a SaveHistory and Add a Exit function.
Clean up; Delete a duplication routine.
New-feature; Add a functions of exclude files.