Almost completely re-wrote FeedFowardNetwork.