changes sim() to simulate() because sim() is a matlab builtin
Merge pull request #3 from dschen/carolyn

changes sim() to simulate() because sim() is a matlab builtin