Extract structure from LON-CAPA files