Merge pull request #89 from enesvold/CRA-505

Cra 664, Cra 665
#CRA-674 temporary commit
CRA-574 Unset n_blocks_with_data class variable is set for single intervals, plus a bug fix for background data in analyzelog.cpp
Merge branch 'CRA-674' into CRA-505