Update code and tutorial
Update tutorial