Ability to import a dataframe

clean up a leaked StringIO when exporting as df
Merge pull request #12 from sburns/importdf

Ability to import a dataframe