PHPDocs and Style for lib.php
Style: Removed closing php tag
API Key is now stored in the config File