what are "transaction fees" used for?
The fee goes to the miners and is deducted from your wallet.  Including a fee in your transaction improves the chance that your transaction will quickly be included in a block.