Removed warnings

Got rid of all the compiler warnings.