History documentation
Better variable names and improved documentation