Singular node

Hopefully this merge request only consists of the get_singular_node method in xmlgroomer.py and it's respective test in xmlgroomertest.py, along with the added 'output' statement in the except clause in args.error_check.