Modified FUNCTIONS FILE to have more comments around global variables

Also added new variable for `emer_number_of_income_days` (see #103)