Modified code. Program can now read new detector configuration.