Fix API reference and header issues