Fixed a few things for code climate.