Builds data structures from html files