Remove old libraries
Rewrite date-enumeration code