check for div by Zero Exception
Merge pull request #5 from Lerentis/master

Checked for div by zero