Set globals properly, read/write file helpers, logging
grep fonction