added text as init param
tests now include reading html files with predetermined content
fleshing out tests