added comments to example scripts
Merge pull request #1438 from ZappoMan/collision_scripting

added comments to example scripts
Merge pull request #1439 from ZappoMan/fix_warnings

fix various compiler warnings on gcc