Added text/plain header for easier var_dump reading

Also added ob_end_clean in case of anything being in the buffer at the time before dieing.