remove debug leftover
remove unnecessary code
Revert "remove debug leftover"
(actually not debug...)

This reverts commit 04732ba8089865af4261dfe5bc3c0d96b8243aa9.
output graph in output_dir selected by user
output only used series and improve layout