fixes to example, added xcode project