fix for npe
add 0.3.1 release jar
Merge branch '0.3.1_dev'