BufferHistory and Line Classes

added most methods