Added authorize function
Keychain and interactive authorization implemented
Updated syntax