updated class value_option
improved the implementation of the classes flag_option and value_option