Added 'dir_flow' function in functionsFvcom