deleted ReadFile and WriteFile class, fixed errors