Change annotation management in order to fix bug with inheritance
Add new option for the footer: not add the end record on last record