Fixed error

Numerator and denominator were not public.
Added example

Example added, supports fractions and percentage.