Major refactoring of c++ code. Make use of ConvolvedSpikeTrain class.