File that calculates velocity, freezing and darting episodes