Updated for iOS 64 bit simulator. Minor corrections