improve the api
Merge pull request #5 from CapillarySoftware/improve_api

improve the api