addto_log and number of samples fix
Merge branch 'master' of https://github.com/riccardosamperna/Sleepstream