fix wrong var name in error handling code

thanks phillip for spotting this one!
Add composer.json
Merge pull request #5 from camna/master

Add Composer Support