Added .gitignore file
Changed the way the temp is read into the main thread