added question_config and added exception for invalid amount of questions
fixed rubocop