Fixed p and q transforms
Merge pull request #2 from kalupa/fixed-p-q

Fixed p and q transforms