add functions to compare with reference file, add helper functions for DFSprint and DFSconcise