Added rangeError event. Closes #2