added generation of functions.php file

fixed small issue with status messages