Added library files. Fixed memory leaks because a destructor wasnt virtual
Made sure that release build works properly
Added missing deletes. Readded commented code