Added basic functions to identify events, calculate their return periods and curve number