Update export to html

markup in notes;
improve template