Fixed all fixeable warnings and errors without changing the program.