attempts at fixing some bugs, please review; particularly changes to variable normalization in Sentence.java