added ability to write files and code to set module properties