Changed to json
Moved the rest of the calls to use the API() func and added some more comments
changed package name to mediawiki