createText() added

Created createText() function.