Reads header, footer and entry templates from files defined in config.h. Defaults to original output if not found.