Added documentation to source files.