Added code comments which can be used by rdoc to generate documentation.