Finished implementing stdp. Merging branches now. Will continue to tweak it in master.