Updated plugin JS definition file, added fail methods, added example code snippets, updated comments.
Implemented remaining plugin function on iOS. The entire plugin API is now implemented on iOS. Write functions are untested. More testing is required of the whole plugin on iOS.