Api doc

fixes #1