Major refactoring and updating logic

- Measure elapsed time between geiger activation and event detection
- 2ms dead time after event detection
- Compartmentalize code and move functions to header file
- Code currently compiles, but runtime seg fault