Update lib for pwf-1.7
Coding style
Version bump, 0.3.1