Clean and fix up animate module. More to do, including documentation.