refactored to store timeout locally instead of in element data; resize event cleared before each refresh; documentation updated;