Made corrections and converted HistText50