restructured code to make initial guess at input vector and iteratively render out final sequence, added functionality to set state of system directly from state vector X