update Text class to use params array removed some unwanted functions