Fix bitwise and relational operations. Expand reference docs.