necessary bugfixes
Added bash scripts for convenient parallelization