simplified code and moved the funcs related to parsing and comparing datasets to their own subdir