Refactored code into methods, Added commandline options and ability to get all records from a given date forward