modified code to generate files in new temp and output folders - everything that needs to be copied to wiki is in output.