Updated paths and replaced variables

Updated paths in functions to include header and head.php. Also replaced TEMP with get_template_directory_uri() to include styles and scripts properly.