added classed test coverage and implemented callables as values
added test coverage to html()
pep8ing