add documentation using rdoc

Using the RDoc documentation framework add comments to class
so that automated tools will create documentation files for the project.