Replaced require with require_relative and updated comments in several sample Ruby programs.
Reorganized Ruby code and updated Ruby notes.