Minor edits including cout statements.