support multiple groups.

- support the command line format that suits adei data exporter
change input into reading from stdin

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
tested on stdin stream

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>