New api

@myronmarston 

Ref #34