Implemented carthage
Updated for iOS 8