flatten as default export.
Merge pull request #12 from timoxley/feature/default-export-fn

flatten as default export.