added logger, added test for two years range, cleanup