Readers may find this version more readable.
http://www.haroldstreet.org.uk/osgb/...e-code-to-mac/
Hope it helps.
Phil Brady