analyze.c: separate logs for each mode
Updated README and TODO