Slight Performance improvements for how header loads
Syntax improvement
Addressed some PHP errors