made lots of changes to history management
added new files