- Added a .gitignore file.
- Added error handling to the code.