allow resetting level with ESC key
add some comments
improve bell sound
Added logging