Switched deepcopy for standard list copy. Cleaned the code. Partitioned the code into 3 scripts. Aglomerated some sections into reusable functions.