Documentation enhancements and bug fixes

This pull request contains changes to the tutorial to bring it up to date with SIMA 1.0. Various bug fixes were made when testing that the tutorial code ran properly.