Updated and re-wrote the entire functions.php based on _s. .