Fix typo
Return true/false for success/fail on iOS

Also keep track of errors a bit. Needs more work to expose them nicely.