Added parity check support
Merge pull request #4 from morpheby/master

Parity check support