dtree_parser function

Parse yaml input for dtree to provide (more) useful error messages