fix json and import bugs and work on the readme