Clean up doclet code and export embeddable HTML