added comments to a_mode.rb