set up arrays to hold both the text section and tags for branches in order to get length and addresses of branches correctly.