Added more comments

Added more comments to the lib file (library).