Now building and running, detector file reading almost done