Reworked NeuroNetwork to be object-oriented.