Reading in dates from config file
Removed global variables