minor bug fixes
added comments in the tutorial examples