Refactorings + switched to CAMediaTimingFunction+HLSExtensions by Samuel Défago for evaluating easing functions