Nitpicking the code

Minor changes here and there to remove warnings and make code cleaner and more uniform.
I think it's a little stronger than debug, I went with warning.