Made a bunch of changes and comments to get the program to compile.