Added some things
Removed some unnecessary comments and added. Handled the 0 case for filteredTokens