Implemented error checking in studyContainer

For study$run and study$runAnalyses. Simulator will continue if a
study's settings are misspecified.

Also various bug fixes.