fixed minor errors in stack/tokenizer