changing some spacing on function line, personal preference/readability
correcting getwords, handle subwords