prettified ruby3.rb, made some things function properly.

added comments to taste.