added example
also generate docs by running npm run docs
working tests