Merge pull request #350 from ndawe/master

Minor wording fix in chain.py
remove redundant code in TemporaryFile and add test