Update check.rb

comments added