make extrator as command, move generation of input graph and file map to extractor