added composer.json for composer
modified to use autoloader