main functions and import cycle and some data

First tranche of downloaded pivot tables