Initial implementation of FIFO to store trigger events, also some format cleaning