Removed unused variables, added debug build type