added option for reading dates from text files