Adding flush and close to ensure output file is written prior to function return. Fixes bug in commit 0412bc01b87a133d805afecd268655e55dd50a27
Merge branch 'develop' of github.com:bkloppenborg/simtoi into develop