Updated page heading
Escaped some variables
Added a function for header align
Cleaned up code