add skeleton for writing to TFile
add matching deletes
first step, count number of object correctly
first real working version