First try to compile: Fixed all compiler errors/warnings