document api and start on api file