improve the OSR code

still needs to  process the json data

- csv output not working. Chinese cannot be identified by excel