major change in sim_eqn.cpp

Code is much simpler now and easier to understand. Still need some help
in places clearly shown with comments. Also the set function is
completely blank. Best version yet