changes to sim_eqn.cpp

using constructor, destructor, get and set functions. set function
requires some help and still have to write code for special cases.