corrected various things that prevented the program from compiling