also output degree of node
move output to output directory
make dependencies proper