Made changes to deviation calculation and velocity formulae to be much more collaborator-driven.