Now frees all allocated memory
Finished homework 4. Renaming homework folders.