Added code to print arrow representation of flow directions to a file