Removed unnecessary code, added a destructor to clean up resources and updated packages