changed the labels on unidimensional graphs, cleaned some code