Fixes #31

Minor changes to get the simulator example to compile.