Update Main.ino

Added acceleration/deceleration functions.