Added logic to add optional prerequisites.
Added logic to validate prerequisites against parent selection.
Added logic to export prerequisites.