Structure change

Change the code structure to meet the Cordova plugin standards
Registry warning

Add registry warning for iOS platform