Modifying 'Text.java' file by setting text, colour, size and gravity of a TextView component, as well as few enhancements to the code.