Implemented an actual API, and full usage example in the testbed