html anchor and source formatting fixes