Added the Digital Detector and fixed a bunch of things.