added to_html test
added docstrings