Added 'vendor' folder to gitignore
Fixed Composer autoload configuration
Added 'RequiredWhen' validation rule and improved the documentation