additional work and unit tests for dom and doc
minor changes and linting for compose and parser