Added exception handling for incorrect refim/refcat input.