Records theta and plots theta at the end

Doesn’t plot quite right but doing some other bigger fixes so version!