some code and tutorial updates