Rewrite config

change some name to respect the java convension
add a config for structure probability
double structure probability