added some validation for the package names in the automation script
started the cleanup of the existing codebase of the automation script