added error, help, and view classes with classmethods. also added helper methods in main