Update __main__ and AnalogGraph

files are now closed in main
files are written thanks to the clean_list func
Shutdown management

clean_list contains function write_to_files
rewritten it clearer
files are closed in AnalogGraphThreads
AnalogGraphThreads and clean_list

program now shuts down correctly !
have to set ods write
readconfig.py
    removed import math
coder.py:
    changed docstring
ods.py:
    used mmap to read files, now writes additional values, have to add
    coder
AnalogGraphThreads:
    changed arg to ods
ods.py

reading files with mmap
all seems to work fine
needs a lot of optimisation ...