Added functionality to render xHTML correctly

In addition, added a doctype function.
Updated test
Created a HtmlBuilder test