added priority score interaction
fixed "one minus" error
made output nicer looking