resetlibrary functionality added so we can test more easily
version updated for npm publish