Added readOnly option.

Closes #1.
Fleshed out documentation and added mode/theme helper functions.