Improved API folder structure
Added callbacks intro
Fix a code formatting issue

Signed-off-by: xchs <github@gmx.net>