Tidy writing of commands in prepare_read_simulation.

Fixes #36.
Fix curly braces in formatted strings.