Modified training to eliminate requirement that iSamples be a multiple of self.iBatchSize
Fixed several additional bugs. Performance still seems to lag Matlab.