Dealt with the handling of unconnected networks.

Minor changes in the classes module and the main script for the code to generate the initial flow points.