added detailed tutorial and example