Removed unneeded comparison
Fixed newline error of astyle
Added comment to unclear line