fixed removing full blocks; added threadtest
added a toggleable debug print called LOG