added more options to cli for data file writing