trap ^C for clean exit.
fixed removing packages
started base work to remove dependencies which are no longer needed.