Added history file and 'revert' command