added wrapping for parity
small fixes in wrapping
Merge pull request #12 from computerlyrik/parity

Parity