fixed a few warnings highlighted by sublime clang
Cleaned up a few warnings