allow native output
patched in new method for Algorithm parsing; fixed-up LaTeX conditional metadata detection; better caption parsing in figures