Adds public functions to set/query caret position