Compile of final program

Fixed all major issues and compiled.