Bugfixes related to long blocks of data resulting in segfault. Maximum size of blocks are now of 30000 samples.