Vastly improved documentation in main.rb.