Direct Electron Detectors: Architecture and Algorithms