Finished adding logging statements to code (issue #11).