fix a small bug in main when creating the Writer Instance.
Merge pull request #326 from BayesianLogic/dummywriter

fix a small bug in main when creating the Writer Instance.