add snippet for doc at header