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

Use xor to do set and clear in single statement.
Commented out debugging printf
Merge pull request #459 from blipvert/fixes/14

Commented out debugging printf
Merge pull request #458 from blipvert/fixes/11

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