fixed many bugs, mostly with handeling empty strings and handeling null inputs. Changed ArticleTopicNgramsum to use TreeMap that was passed to the  constructore instead of the test data.