fix some indexing
fix a parameter indexing -- now this runs through an entire timestep,
but eventually NaNs...