Added the calculation of median values for each day and the actual use of program arguments.