added serialisation support to history
updated documentation