Fixed freezing on slow connections

Also removed carriage returns after I added them by accident.
Added gitattributes file