Fixed some syntax typos.
Some mroe type declarations were needed in dailyMaximums.