fixed tag problem, added formatting and html core