fixed bug and also generated example csv and json files