Revised file structure

changed temp to main.temp for clarity sake