Optimized script and fixed error in regex replacement
Added error string
Readded link replacement
Merge pull request #3 from Webastronaut/master

Optimized loading script and added error message