added share method
build
webpack
rewire integration
added demo
runtime type checking