Fix API example errors.
Better explain API methods.