Added parentheses around bitwise & expr in comparison, and added comment.

Use xor to do set and clear in single statement.
Merge pull request #458 from blipvert/fixes/11

Added parentheses around bitwise & expr in comparison, and added comment