added getSmoothing() and direction.total_delta(for use in main.js)