fix error checking; display result at end of step

put back some error checking i accidentally removed
add display of slack result at end of step