adds functions.php and codes to the index.php to make it function