Fixed all compiler errors
Fixed all compiler warnings