Simulation.save is almost working, basic_decode.py has an almost-working version