Mirror cordova init
Some edits