fix flat output
add datapackage.json and csv per issue #1