fixed missing API functions declaration in API ; fixed a typo in APIHandler.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>
added full comments to the new API functions.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>