Variable name fix.
Documented utility functions.
Documents core functions.