handle BOOLEAN field correctly

fix #5
Check if job was finished successfully

Fixed #6
tweak
Merge branch 'develop'