Refactoring the code AND listMotions with some cool features not added to the main viz