Diagnostics script, plus new minxspan algorithm
Bug fixes, plotting in case0 script