fixes to graphs and adding lci as passable argument for plotting