Added missing increment call to error counter variable
Rewrote reset_block script
-Script is now idempotent - courses with blocks get skipped
-Script now has sane error handling
-Script has better reporting