added flat file support
small fix for path of file in file stream
Fixed a few bugs
Merge pull request #9 from CompassPHS/flat-file

Flat file