Replace demarcation character in sed call
Add logic to specify URL
Fix typo and extraneous line