added functionality for barplots, including inference information