Added startDate and endDate parameters.  Summary is printed out at the end.  The Summary needs to be tidied up.