added delayed beeps
simplify and fix style
1.2.0