add protection for zero values in divergence
Merge branch 'master' of github.com:marcelrf/shepherd