finished all code (before debugging) required for training of the spiking neural network