Inital docs for api.

Related to #81.