fix #15 but use tempfile instead of run number
cosmetic changes (pylint)
fix #20 put meta information into result file as comment