In the process of fixing above bug, cleaned up the code a bit.
Tested if addresses.txt file...
- doesn't exist, it will create the file and write the found address properly
- exists but doesn't have the found address, it writes properly
- exists and has the found address, it'll skip the write process
Also added a notification ping on found address and successful write.