Update .gitignore
Add line endings for Mac OS.
Add basic error messages and UI. Fix line endings.