Working on getting unit tests passing
More unit tests working (updating networks as I go).
Some bug fixes as well.