started work on time alert. Also added custom functions, to add generic functions, like sort_by_date