updated version
added documentation and example