add option to output to stdout - patch from Tamás Gulácsi
report file size correctly
added file name format when exporting. patch from Tamás Gulácsi
ensure file name does not contain any "/"