Working on getting out memory leaks, also changed due to g++ compiler on linux not having what I want