Genericized printing somewhat. Added date analysis.