Added documentation and typedef for accel_callback