Updated tutorial, added new methods and tests.