Add PARITY_* constants, clean up docs.