Faster HTML5 enc
Documentation and some style refactoring