fixed non insertion of sentence markers for the parser
remove refs and math tags