Make DocumentHistory enumerable
Tidy up use of change history