rewrite comments to lib.sh