added synonymous detection and graphical changes