Bugs and Better DOM Injector

Fixed some bugs in the DAQ and Filter, and wrote a less bad DOM injector and began retrofitting the entire codebase with it.