added xvf writer which writes data file as described in task3