Reformatted Header element

Added documentation and file restructure
Remove extra variable