Split main functionality into its own file
Add argument parsing to customize input file
Add command line flag for max redirects
Added a little better error message when file is not found