Added .gitattributes and corrected the line ending problem

Added .gitattributes and corrected the line ending problem