added check for importance to range between 1 and 9