minor changes and fixes to example code in groovy manual