Clean up the automatic engine, correct a few animations

Ready to write the new version of the automatic mode !