fix extractAnnotations not returning the correct array + add section header