Motor positions now work properly
Fixed missing set to the last element of the spline arrays for the frameNumber and motor positions.
When adding a transition, function now automatically sets the current transition to the newly added one.
Changed the name of the local frameNumber to frame to keep it from interfering with the global frameNumber
Fixed initialize splines function to initialize the spline with the current number of transitions, not the max number of transitions.