Logic to display news according to importance and output file also added to repo