added frames, fixed breaklines, breakpages, captions