Generate headers function

Added documentation

Signed-off-by: Guillaume Poirier-Morency <guillaumepoiriermorency@gmail.com>