draft for poti_reader.c (check rastro_read.c for code layout on how to read events from binary file)