updated to use auto layout and to code sign properly for iOS 8 targets.