Rewrote phase space state code

- Also rewrote the advance time method of particle system