Making small fixes
Deleting temporary history file
Fixed temporary history file deletion bug