added tests, minified version, improved docs
prepared for release