updated docs, added tutorial example