added tutorial. some data restructuring