Memory Management added and Files reallocated