Squashed 'lib/cpp-library/' changes from 6644b58..25f1c19
Squashed 'lib/cpp-library/' changes from 6644b58..25f1c19

25f1c19 Also smooth frequency and print done for etr after being done
62d43e8 Fix bug in checking for buf.size

git-subtree-dir: lib/cpp-library
git-subtree-split: 25f1c1984c0b9a5b7c02ee40012d914379d25bb2

swillner/libmrio,swillner/disaggregation