fixed bug in simplifyFrac() so that all remainders are simplified