Added an iOS framework target

* Added a framework target
* Added appledoc reference
* Improved exception safety