generate doc only when requested, fixed headerFilter parsing