Modeling a Flash Lidar System - Part 1