change the usage of ./lib/util.js
and add some comments for the sourcecode