Changes done for upgrading to API-V2 and node js for download, creating an instance