improvement to show-switch-features.rb, 2nd try

This pull request contains a rebased and updated commit to address the code convention issues pointed out by @yasuhito.