Rename TextMap to WordMap
Remove unused variable