Added API docs, see #174