migrate some more code from the notebooks
fix default outputMode for lcsimulate