Changed dom to allow for root node(s) to have classes.  parse now returns an array of root level nodes.  Performed basic cleanup.