Improvements

- Better error handling.
- Some bug fixes.
- Update notification token once every 3 days.