added option export_events to turn off export of text files
update of region boxes fixed