Renamed #to_hash to #to_h to match Ruby 2 standard. Renamed .from_hash to .from_h for consistency.