This:
Reading in target Values (TV)- they are going to be calculated on the arduino
- looking for the master axis- the one with the longest way to go.
- Setting the stepsize for each depending on the master axis
- Putting the leading sign to it
- Iterating the angels depending on the stepsize
(5. Writing the vlaues to each servo)
and that code you posted are so far apart as to be completely incomparable.