Added some const modifiers to methods that don't modify the object. Replaced a line in cursor_line_position with a call to a existing method that did the same thing