- Added and updated comments
- Removed unnecessary else statements
- Added code to update Forward URI field when the links are external