Changed split routine

now works for more than two fractions - more testing required