adding sortType class and minor modifications ( a date) to the run class