Added comments on functions.php and some improves