Add API documentation

Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>