Fixed some formatting, pdf output issues.