multiple changes and removed extra spaces

@rbran100
a)reformatted the output for most-viewed-pages and sites including the number of results - Dan's request
b)made the start and end-date past 1-day/24 hours earlier as per Ferdi's request
c)added comments and added variables
d)removed spaces and reindented