added trainNetwork file to run the training and adapted the network simulation to return the weights and fire times correctly