Adds checking for already existing permissions, makes tool automatically find SDK build target, adds more comments, and fixes package.json info error.