Add API docs

Signed-off-by: Eli Skeggs <skeggse@gmail.com>