Added documentation. Incorporated cordova 2.7 JS.