bugfixes in bedToBins.R conversion