Added comments to functions.
  Renamed member variable.

      m_map -> m_history

  This is was a historical thing; I previously stored history in
 a map but later changed to a vector.