Removed reference to buffer from class and now uses text view to get the buffer for less class-clutter.