#295 Refactoring and updated Model.toXml() code
#297 Correction for NPE when shouldPause() is called before shouldCollectAndSortStatistics()
#297 private static final Logger