Timestamps implemented

Implemented the ability to read timestamps from the input stream into the exposure object. Also cleaned up some code by consolidating repetitive lines into for loops.