tests passing, cleaning up
api moved in a variable
Merge pull request #544 from kashesandr/multiBar

multibar clean up & refactor