Checks if curl extension is loaded
Typos
Shebang
Refactoring, phpdoc, misc.