Document public api -- fixes #4