refactoring change.rb and documented it