Add debug function to print all objects
Update main to show all objects structure
Fix error in light object parsing