changed 'keywords' set to a TreeSet (it's sorted)
correctly adds keywords, need to be cleaner though