Condensed some of the styles; improved the handling of the output text.