Fixed bugs with reprots and distinguish between book, article and
section reports.