Bugfixes

Hello,

i made several fixes to your library including:

- adding autoloader to composer
- fixed bug where you use local insted of instance variable
- fixed wront filetype check
- added return values after parsing XML

Cheers,
Moritz