loopgraph: support custom window via parameter and csv outfiles