fixed some things and added convertToFraction