Added comments to the library code.