xnet.cpp now working, added plot_spikes.py, adopted spike_patterns.py to work with new spike file format