refactored the class methods and lib/files to match the activerecord nameing conventions.