Fix more minor bugs with formatting and result display.