added some information retrieval methods to Text.java