Added documentation and renamed words to rWords.
Added documentation and todos.