Some small additions to TF 1.7

You can see the changes I made in the commit log. Nothing big or potentially dangerous. I just wanted to show you what I can do. I have never made a pull request in my life before, so I hope this will work as intended :D Please let me know if you have some questions about those changes.