added test and prepublish scripts, ignoring lib/ directory