A bit of refactoring. Package for data processing. Takes nodes, edges and output path and does everything _A_U_T_O_M_A_G_I_C_A_L_L_Y_