Adding API documentation