Added a tutorial and fix few errors