implemented raw export and added example
nicened up example doc