added dependency integration via composer and made some minor code cleaning.
Merge pull request #3 from nonsenz/composer_integration

added dependency integration via composer and made some minor code clean...