added documentation and simple tutorial