added a new option to use a separate file containing the data segment to write
updated README