fix sign of t, thought I'd done this ages ago
simplify JSON decoding, use new graphics filenames
set coefficients length once, in constructor