Cleaning up functions.php and added a logit functions that logs a var in logfile.txt