Giving functions a number in the animation and savun these out.

Changing the codec to work better with led codec

All saves and loads now OH YEAH BABY
Codec changes - now reads and writes the correct number of frames ;-)