some fixes
edit probability thresholds
add p2 logic
merge
edit constants and stuff
Merge remote-tracking branch 'upstream/master'
add argument to choose which phase to run.
pass phase arg to mapping and graph
param changes
Merge remote-tracking branch 'tobias/master'
Merge pull request #80 from tobiasandersson/master

a lot of brain updates and more