Added date portions to main and opened the file in init_lister