added new triggering functions in fortran
rewrote event reading
added fact-like dark count spec extraction