added java class to parse text files