Adding getBalance() to the API

Added a new function getBalance(). Returns the amount of credits that the user has.
Updated example.php to reflect the getBalance() usage.

PDF documentation would need updating if this were to be added.