comment filetypes
pep8
catch IOException if not gzip
save data3d and segmentation as integer type