Fixed a bug in day of the year function.  Changed API for date wrapper functions.  Removed some useless functionality.