Added function body to getHeader

getHeader was missing a body. I implemented the function.