all bugs fixed, tutorial up to sample data generation