Complex sentence: Dewey was present, and was so conspicuous for gallantry that he was recommended for promotion on the strength of it; and meanwhile he was given temporary command of the frigate.
Split into simpler sentences: Dewey was present; and, was so conspicuous for gallantry that he was recommended for promotion on the strength of it. Meanwhile, he was given temporary command of the frigate.