Repaired line endings

Added .gitattributes and fixed line endings.