clear_history -> clear_changes and some comments.