add doc print example
formatting tests
add deployment target when not present, fixes #20
pretty xml writing, fixes #17