Cleans the packages of unused code

Went through all of the packages and removes all of the code that is not used.