Added Header and Footer to Marks' table
Catch and deal with ArrayIndexOutOfBoundsException in getLinesBetween