great code only can you kindly share code for http://phd.edgarlopez.net/simulation-tools/retsim/ as well?