format for api/add and documentation inline with code