Added tests to handle leapyears.
Cleaned up legacy code. Fixed score calculation to match production values.