directory_extra_parameters and extra_parameters

added directory_extra_parameters
fixed extra_parameters
reversing the dictionaries, as to keep the same order as they are defined