fixed bugs and more comments

-changed 'renderable' to 'RenderXML" so it'd work
-comments for phpdocumentor
-added optional html autoformat function