Added automatic caption file selection and hover line wrapping/truncating.