Various small fixes as described in commit messages and a new BED file.