network: fixed the class definition due to gen-class inability to compile.
network: new normalized diff algorithm.