Added getWords method
updated File to return a dynamic array of words in file
update