Simplified the fraction plugin

And added infinity for division by zero, because why not?