Add Tomdoc blocks for existing code