simulation improvements
simulations
new alg tried and general cleanup