Rearranged main.cpp and refactored toneMapper.

Required images are outputted to the directory from which the program is run.

Values we need to report are outputted via cout