Phenol formaldehyde resin EGA and multi-step pyrolysis