Add definitions to extract the core
refactor autoload and add many composer.json