Added check for curl.
Removed eval.
Corrected capitalization of comments.
Added message if not connoted to internet.
Added braces around variables.