commented the library source code