Changes for lib: modes?
Changes for perftools/keynotetools: check for errors in JSON files while reading, move to error dir if this is the case.