bug fixes and tutorial updates