Updated platform.rb slightly. Added some comments to guide the eyes