fixed deallocation and reallocation of objects, included benchmarking printout, small fixes