handle div by zero
Merge pull request #62 from nickdesaulniers/divZero