Added the new functions that Or uploaded to the file PA1. I also changed
some code in order to use the function PrintTokenError.