added doc blocks to all functions in renderer
added doc blocks for xhtml renderer
added short comment on how a renderer works
updated doc blocks in metadata renderer
simplified abstract caoturing in metadata renderer