Update check.rb

added shebang + some comments