Added code needed to extract code signing authority
Provisioning expiration
Provisioning app id name
Provisioning team
Moved code a bit around for readability