Adding some more comments to source code and documentation