fixed histogram initialization bug, added slightly better sub-event classification