Fixes to the STDP mechanism from Vogels et al. (2011) Science 334:1569-73 http://dx.doi.org/10.1126/science.1211095 Still not sure it's quite right. Need to re-read the supplementary material.