Takes aggregation duration from config file

Closes #30

(well, it would be event better if number of LoDs itself be a parameter,
but it's now good enough).