change readfile.h from struct to class