api to html generator, added support for examples