some comments added
merge
bounce protection delay added