added autoload to composer.json
fixed instance variable bug
fixed file type check bug
added return values to xml parser
Merge pull request #7 from McRip/merge

Bugfixes