deal with edge cases
fix basis optimizer
plot originals, bases, reconstructions and differences
whoops
silence debug output