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.
@oalders Oh yes, I hadn't checked my changes properly. My bad.