Prevent division by zero for empty regions
Fixed import error
Minor performance improvements and refactoring of predictions
Merge branch 'master' of https://github.com/freeman-lab/thunder