Rewrote HTML generation code.
It still has some problems, I'm working on it.
Added some HTML tags. More tags coming soon.
(right after fixing all bugs in HTML generation code)