added custom exception and updated pz lib
Merge branch 'dev'