composer.json added & fix undefined variable.
Merge pull request #2 from fg/master

composer.json added & fix undefined variable.