Added raise condition if weekday name is not valid
Added raise condition if 'from' is bigger than 'to'