Added autoload and type to composer.json