Api/changes

@oalders : I have made all the changes to the scripts in this pull requests. And tidied everything.

Please have a look at it.
You've switched all of the single quotes to double quotes here (and in other places).  Let's only use double quotes where there's interpolation (a variable being inserted into the quotes). Could you change this in all of the appropriate places?