adds header tags
fixing a firs-tchild problem
slight tweaks for better header handling