add active_token pointer to INPUT structure (marks currently processing token)
Merging changes from master into kif-pos