Simplified nextCaretPosition.
nodeAtPrevCaretPosition is now prevCaretPosition
Fixed documentation.
Simplified moveCaretRight.
Added support for caret movement towards the left.