Fixed some bugs, fixed end-plotting to work better (spits out the
actual discrimination functions instead of the staircases over time)