node v16+ better utilizes the address 127.0.01 rather than localhost, at least on MacOS while still working for Windows.
Switched from raw promises to async/await. Outlined error handling function to reduce amount of nested code. Added comment about the new file intent.