API doc updates and hook docgen to main build