Added error messages when parsing rules file