a proto api
tidy
Merge pull request #26 from mikedewar/master

proto api