fixed tor error and added purging unneeded packages after install

fixed tor error and added purging unneeded packages after install