added copy functionality, worked on StateVector