Update UA_iOS.php

Better error handling, new function (get deviceInfo)