added M300 beeper code implementation.