Text this: Photodetection and measurement: maximizing performance in optical systems