Great piece robert and found it SUPER useful, thanks so much for posting.
No major problems getting it running in 0700, though weird Xcode 4/of 7 were reading the faces.txt document as having a space and a carriage return on each line (so had to change the line:
inImage = inImage.substr(0, inImage.length()-1);
inImage = inImage.substr(0, inImage.length()-2);
Using it in a "security app" prototype for the computer that uses both face recognition and a palm scan taken using an old scanner to confirm identity (working on getting an electric scale with USB I just got on ebay implemented to check and make sure you're not a terminator as well, as you can tell this is very SERIOUS stuff). I'll make sure to post as soon as I get it cleaned up. Thanks again!