Added support of gap coding restriction sites for the write_to_file method