gets replace list to be the same
changes to add command line options
change from greater than 1 occurence to greater equal
restructure codebase