updates to tutorial
revised api