adds after_save and after_destroy to match.rb and related definitions
delete useless commented lines