Improve changing frames
Remove unused variables
Update index
Add test for groups
Zoetrope working as expected