Fixed couple of issues\n1. Date format can be customized\n2.Look no further when the maximum number of blank lines are reached