Changed the way range works to make it store only the name instead of start/end dates (when not custom)

Also fixed a few bugs including: min/max problems, range getting reset to the current date and the offset from the current date, and a few others.