Added options for weekly and monthly stats as well as daily.
Added date format option and switched hashes to ruby 1.8 style.