added the simulation matlab functions and updated the readme