Modifying Matlab configuration to be a generic configuration class