removed warnings from build

Fixed a few warnings about white space and dead code