Changed the way DocumentConverter saves dates (this is temporary); also changed how sorting works for dates (also likely temporary). Added some commments.