some comments, small improvements in _prepare_html

... and first test build.