updating barnumbers to work with horizontal bars, simplify the alignment function process, spread out some ternary statements for clarity, and updated the README and the example to have a horizontal bar