Polish

Added comments to make the code more reader-friendly.

Added code to reset time delay when the reset button is pressed.