Better error and success messages using JSON
Deleted one-liner
Added Author header
Added check for invalid URL