various bugfixes
Merge branch 'master' of github.com:BenjaminPeter/bedmerger