Added documentation to Ruby source code.