renamed state.{hpp,cpp} to instance.{hpp,cpp}