Now checks for divide by zero
Merge pull request #5 from Breilly38/master

Now checks for divide by zero