Fix a bug with bible passage footnotes. Other minor fixes