changed constructor to allow key to be passed

api key can be passed to constructor, which is a need is some project. I also changed constructor method name for **__construct** (as required in PHP 5.3).