Some final changes, mostly just cleanup. I put the code to run the program in a method and removed a print statement that was used for testing output.