add clean and postinstall npm scripts
set main to ./lib