Solved most of the compiler warnings
Solved yet another compiler warnings