More cleanup, made transitions play immeditely after changing the curve (no need to press a button), and made them loop continuously.