IO: added method for simple text to file writing
offsets in combinations fixed
Added support for csv-file writing