Fixed incorrect method of creating lists of hidden and output nodes.