Updated API

I've updated the API and the documentation, see the API.php commit for more details: https://github.com/MegaCookie/MATA-PHP/commit/d3450b5fbcac2822c444d6d0fd77037de16e9bdf