lots of update including the use of repeat and templates to dynamically added sliders and result fiends
bug fixes
bug fixes
updated final density function
fixed error in setFInalDensity