send each line to file separately
add/update docs
convert graph type properly
update doc