minor style tweaks
adds some header functions
minor style tweaks