Add edge detection to pedometer, and tests with real data