Implemented text only validation for captions and cites. Fixed some bugs and test cases.