Corrected bug in the thin film code.
Generic network: distance.  Corrected sign error in the code.