Source code update

program now executes batches 1, 2, & 3 successfully. TODO markers are
used to denote work still required