Building the useful data structures from the html files