throw exception if no model was loaded
flush stream
Merge branch 'develop' of github.com:bendisposto/prob2 into develop