Diagnostics - visualising what's going on inside the algorithm with PNG and SVG files