Md5 and filesize for result files

* Calculate file size and include it in the headers

* Compute the md5 sum and include it in the headers