add partial documentation to Lib.js