added ability to provide title, x and y axis labels