SPM12 compatibility
New feature: optional streams

I have also eliminated the redundancy of the firstlevel_models.