changed some interfaces to make it easier to match up with MongoExport.
added mongo export.