Standardized api outputs

Fixes #116.