fixing instances when caption is in wrong spot or does not show up all
Merge pull request #14 from dtan/integration

fixing instances when caption is in wrong spot or does not show up all