removed whitespace and unused code

This is the first time I've done a pull request. I hope it merges.