Fixed a couple problems with find wrapping around
Fixed a bit of code to test for errors the way Apple recommends
Updated for recent changes (and improved checkBad assert).
Don't balance braces within comments, strings, and character literals.