fix isDataClass to search for class '' and use more robust ifstream