adding kernel purge and moving upgrade sudo into a seperate file