Library and examples for API implemantation