Lots of changes with analysis.

ALso changed SPday.ave.

Added lubridate package.