implement basic api calls and documentation