added files for simulatator written in R