refactored method name from parseFile to getOneTreeFromFile