Added button and logic for reading OG resource data. Some cleanup.