Close stream resources
Added .gitattributes
Fixed line endings
Merge branch 'master' into gamesettings