Bar spacing

Allow for variable spacing between bars.

Note, this is forked from my other pull request, #20, so that one needs to be merged first.