file api
Merge pull request #1 from PigRun/master

file api