Fixing numerous errors in salience function computation, further complexity optimization, configuration file added