Fixed warnings, nothing more

Fixed warnings, nothing more. 

I hope you don't mind the switch case indention's that was done automatically cus my IDE was setup to use tabs instead of spaces so i had to fix that..