Improve code

Make event rate window 5 minutes instead of 2,
to decrease fluctuations.
Remove obsolete comment about available ESD data.
Add functions to set x and y limits.
Require 20 pixels of an element to be in viewport,
to not scroll when using the show_id function.