Create decorator for putting functions into rendering context.
Clean up and document checker module; address pep8 issues.