heavy refactoring of IO;added more helpers; added more Wix