cleaned up the code. changed legend to mono; padded numbers and names