Fixed export_to_apf() to prevent empty lines in its output.
Finalised export_hit_results_agreements() method.