Valgrind is used to detect memory leaks. Memory leaks were caused by created signals in output method. It is fixed. Additionally, garbage collection and destructor methods are implemented. An error that is detected by Valgrind (no effect on output), is fixed. It was related to char to string conversion of output filenames.