Code formatting, updated comparison operators, removed unnecessary code