modifications on function.php

modifications and fixes on function.php to make the theme updater work.