working out table format for element structure
Cleaned up element references