Added some documentation to source code.