History structure: documentation and clean up